var express = require('express');
var router = express.Router();
var categoryRouter = require('./admin/category.js')
var articleRouter = require('./admin/article')
var linkRouter = require('./admin/link')
var userRouter = require('./admin/user')
var {checkLogin} = require('../middleware/checkLogin')

router.use('/category',checkLogin,categoryRouter)
router.use('/article',checkLogin,articleRouter)
router.use('/link',checkLogin,linkRouter)



router.use('/user',userRouter)

module.exports = router;
